<script setup lang="ts">
definePageMeta({
  layout:'admin',
  title:'代卖域名详情',
})
import {EXAMINE_STATUS} from "~/const/Maps";

let {data:info,refresh}=await useServerGet('/backend/agent/getDetail',{id:useRoute().query.id})

</script>

<template>
<el-card>
  <div class="flex justify-between">
    <h2>代卖域名详情</h2>
    <el-button type="primary" @click="refresh">刷新</el-button>
  </div>
  <div class="flex p-10">
    <el-form label-width="100px" label-suffix="：" class="w-2/5 mx-auto">
      <el-form-item label="ID">
        {{info.data.id}}
      </el-form-item>
      <el-form-item label="手机号">
        {{info.data.user_phone}}
      </el-form-item>
      <el-form-item label="域名">
        {{info.data.domain}}
      </el-form-item>
      <el-form-item label="价格">
        {{info.data.price}}
      </el-form-item>
      <el-form-item label="状态">
        {{EXAMINE_STATUS[info.data.state]}}
      </el-form-item>
      <el-form-item label="注册时间">
        {{info.data.register_time}}
      </el-form-item>
      <el-form-item label="到期时间">
        {{info.data.expiration_time}}
      </el-form-item>
      <el-form-item label="更新时间">
        {{info.data.updated_at}}
      </el-form-item>
      <el-form-item label="创建时间">
        {{info.data.created_at}}
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="useRouter().back">返回</el-button>
      </el-form-item>
    </el-form>
  </div>

</el-card>
</template>

<style scoped lang="scss">

</style>